﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Snake
{
    class object2Dsnakebody : object2D
    {
        Texture2D f_texture2;
        Vector2 f_directionOfMovement;
        int  f_offset;
        public object2Dsnakebody(Texture2D snakeBodyUppDnow, Vector2 snakeBodyPos, Texture2D snakeBodyLeftRigth, Vector2 directionOfMovement): base(snakeBodyUppDnow, snakeBodyPos)
        {
            f_texture2 = snakeBodyLeftRigth;
            f_directionOfMovement = directionOfMovement;
        }
        public object2Dsnakebody(Texture2D snakeBodyUppDnow, Vector2 snakeBodyPos, Texture2D snakeBodyLeftRigth, Vector2 directionOfMovement,int offset): base(snakeBodyUppDnow, snakeBodyPos)
        {
            f_texture2 = snakeBodyLeftRigth;
            f_directionOfMovement = directionOfMovement;
            f_offset = offset;
        }
        public Texture2D texture2 
        {
            get {return f_texture2 ;}
            set {f_texture2 = value ;}
        }
        public Vector2 diretionOfMovement
        {
            get {return f_directionOfMovement ;}
            set {f_directionOfMovement = value ;}
        }
        public int offset 
        { 
            get{return f_offset ;}
            set {f_offset = value ;}
        }
    }
}
